package com.filldream.fastboot.core.job.task;

import com.filldream.fastboot.core.manager.ClsNewsManager;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.util.Arrays;

@Slf4j
@Service
@Component("ClsTaskV2")
@RequiredArgsConstructor
public class ClsTaskV2 {

    private final ClsNewsManager clsNewsManager;

    /**
     * 刷新财联社消息
     */
    public void refreshClsList() {
        clsNewsManager.refreshClsNews();
        clsNewsManager.autoSendOwner(Arrays.asList("zr","sun"),1,false);
    }

    public void refreshClsAnchor() {
        clsNewsManager.refreshClsAnchor();
    }

}